package com.garbagecan.cachestudy.mycache;

import java.util.Map;

public interface CacheManager {

	void put(String name, Object obj) throws CacheException;

	void put(String group, String name, Object obj) throws CacheException;

	void putAll(Map<String, Object> map) throws CacheException;

	void putAll(String group, Map<String, Object> map) throws CacheException;

	Object get(String name) throws CacheException;

	Object get(String group, String name) throws CacheException;

	Map<String, Object> getAll(String group) throws CacheException;

	void remove(String name) throws CacheException;

	void remove(String group, String name) throws CacheException;

	void removeAll(String group) throws CacheException;

	void clear() throws CacheException;
}
